STEP 1: First we need a message to encrypt! For simplicity, we'll work with a lowercase alphabet as provided below.

When accepting user input, it can be useful to make it all lowercase by using .lower().

  • Go to the toolkit and drag out Stage Ask. Change the input variable choice to message.
  • In the .ask() parentheses, change the string from "Yes or no?" to "Enter a message to encrypt!"
  • Go to the LOGIC tab and toolkit. Drag out Lower Case and change both my_var to message.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)